package com.iespring.mapper.admin;

import com.iespring.bean.admin.user.entity.MallUser;
import com.iespring.bean.admin.user.entity.MallUserExample;

import java.util.List;

import com.iespring.bean.admin.user.vo.RowsBean;
import com.iespring.bean.admin.user.vo.StatUserVo;
import com.iespring.bean.common.BasePageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MallUserMapper {
    long countByExample(MallUserExample example);

    int deleteByExample(MallUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallUser record);

    int insertSelective(MallUser record);

    List<MallUser> selectByExample(MallUserExample example);

    MallUser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallUser record, @Param("example") MallUserExample example);

    int updateByExample(@Param("record") MallUser record, @Param("example") MallUserExample example);

    int updateByPrimaryKeySelective(MallUser record);

    int updateByPrimaryKey(MallUser record);

    Integer selectCount();


    List<MallUser> selectAllUserLimit(BasePageInfo pageInfo);

    List<RowsBean> selectUserOrderByDay();

    List<MallUser> selectUserByMobile(@Param("mobile") String mobile, @Param("deleted") boolean deleted);

    //int insertUserByMallUser();
}